package com.tao.service;

import com.tao.entity.Account;
import com.tao.entity.Member;
import com.tao.repository.AccountRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: wangying
 * @Description:
 * @Date: Created in  2019/4/1
 */
@Service
public class AccountService {

    @Autowired
    AccountRepository accountRepository;

    public List<Account> findAll() {
        return accountRepository.findAll();
    }

    public Account insert(Account account) {
       return accountRepository.save(account);

    }

}
